package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.ContactDao;
import com.kaishengit.entity.Contact;

public class ContactService {
	ContactDao dao=new ContactDao();
	public boolean addcontact(Contact c){
		return dao.addcontact(c);
	}
	public Contact findbyid(String id){
		return dao.findbyid(id);
	}
	public List<Contact> findAll(){
		return dao.findAll();
	}
	public boolean del(String id) {
		return dao.del(id);
	}
	public boolean updatecontact(String id, String name, String company,
			String cellphone, String phone, String email, String address,
			String website, String weibo, String introducte) {
		return dao.updatecontact(id,name,company,cellphone,phone,email,address,website,weibo,introducte);
	}
	
}
